using Microsoft.EntityFrameworkCore;
using Mvc.Models;
namespace Mvc.Db{
    public class Demo:DbContext{
        protected override void OnConFiguring(DbContextOptionsBuilder build)
        {
            var con='server=.;database=Demo;uid=sa;pwd=123456';
            builder.UseSqlServer(con);
        }
        public Dbset<Product>Product{get;set;}
        public Dbset<Category>Category{get;set;}
    }
}